//
//  ActivityMovieCell.m
//  Movie
//
//  Created by huazi on 15/11/4.
//  Copyright © 2015年 huazi. All rights reserved.
//

#import "ActivityMovieCell.h"

@implementation ActivityMovieCell

- (void)setSubviews {
//    @property (strong, nonatomic)UIImageView *imageMovieHead;
//    @property (strong, nonatomic)UILabel *labelMovieName;
//    @property (strong, nonatomic)UILabel *labelMovieDes;
//    @property (strong, nonatomic)UILabel *labelMovieTime;
//    @property (strong, nonatomic)UIImageView *imageMovieType;
    self.imageMovieHead =[[UIImageView alloc] initWithFrame:CGRectMake(15, 18, 100, 75)];
    [self.contentView addSubview:self.imageMovieHead];
    
    self.labelMovieName =[[UILabel alloc] initWithFrame:CGRectMake(127, 20, DeviceWidth-130, 20)];
    self.labelMovieName.font =themeFont(16.0);
    [self.contentView addSubview:self.labelMovieName];
    
    self.labelMovieDes =[[UILabel alloc] initWithFrame:CGRectMake(127, 50, DeviceWidth-130, 20)];
    self.labelMovieDes.font =themeFont14;
    self.labelMovieDes.textColor =[UIColor colorWithHexString:kcolorText7d7d7d];
    [self.contentView addSubview:self.labelMovieDes];
    
    self.labelMovieTime =[[UILabel alloc] initWithFrame:CGRectMake(20, 102, 100, 20)];
    self.labelMovieTime.textColor =[UIColor colorWithHexString:kcolorText666666];
    self.labelMovieTime.font =themeFont14;
    [self.contentView addSubview:self.labelMovieTime];
    
    self.imageMovieType =[[UIImageView alloc] initWithFrame:CGRectMake(DeviceWidth-46-20, 130-18-11, 46, 18)];
    [self.contentView addSubview:self.imageMovieType];
    [self addLine:CGRectMake(0, 129.7, DeviceWidth, 0.3)];
}
- (void)setDataCell:(id)model {
    [self.imageMovieHead setImage:[UIImage imageNamed:@"banner"]];
    self.labelMovieName.text =@"《四十五周年》发布美版预告";
    self.labelMovieDes.text =@" 真挚情感，动人演绎";
    self.labelMovieTime.text =@"10分钟前";
    self.imageMovieType.image =[UIImage imageNamed:@"yugao"];

}
@end
